<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MNNKit: MNNPortraitSegmentation/iOS/MNNPortraitSegmentation/MNNPortraitSegmentation/MNNPortraitSegmentor.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="mnn.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MNNKit
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">MNNKit is a collection of AI solutions on mobile phone, powered by MNN engine.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b73b07f6bbd4e081d46f7df6c5a37ab5.html">MNNPortraitSegmentation</a></li><li class="navelem"><a class="el" href="dir_e58c227fa8fd8ac4a075397c59ddf51c.html">iOS</a></li><li class="navelem"><a class="el" href="dir_cb616b6757e5115efbc1cd70ea5b333d.html">MNNPortraitSegmentation</a></li><li class="navelem"><a class="el" href="dir_b134f2d3165081d89f01a0cd96796a48.html">MNNPortraitSegmentation</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">MNNPortraitSegmentor.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_m_n_n_portrait_segmentor_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//  MNNPortraitSegmentor.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//  MNNPortraitSegment</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  Created by MNN on 2019/12/26.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//  Copyright © 2019, Alibaba Group Holding Limited</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#import &lt;UIKit/UIKit.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#import &lt;MNNKitCore/CoreCommon.h&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#import &lt;MNNKitCore/CommonDef.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="_m_n_n_portrait_segmentor_8h.html#a57567af2cbd9dd6cc412f27cba05e8fc">   14</a></span>&#160;<span class="keyword">static</span> NSString *<a class="code" href="_m_n_n_portrait_segmentor_8h.html#a57567af2cbd9dd6cc412f27cba05e8fc">MNNKitErrorDomain</a> = <span class="stringliteral">@&quot;MNNKitErrorDomain&quot;</span>;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="interface_m_n_n_portrait_segmentor.html">   18</a></span>&#160;<span class="keyword">@interface </span><a class="code" href="interface_m_n_n_portrait_segmentor.html">MNNPortraitSegmentor</a> : NSObject</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;+ (void)createInstanceAsync:(<span class="keywordtype">void</span>(^)(NSError *error, <a class="code" href="interface_m_n_n_portrait_segmentor.html">MNNPortraitSegmentor</a> *portraitSegmentor))block;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;+ (void)createInstanceAsync:(<span class="keywordtype">void</span>(^)(NSError *error, <a class="code" href="interface_m_n_n_portrait_segmentor.html">MNNPortraitSegmentor</a> *portraitSegmentor))block callbackQueue:(dispatch_queue_t)callbackQueue;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;- (NSArray&lt;NSNumber*&gt; *)inference:(CVPixelBufferRef)pixelBuffer</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                            angle:(<span class="keywordtype">float</span>)inAngle flipType:(MNNFlipType)outputFlipType</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                            error:(NSError *__autoreleasing *)error;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;- (NSArray&lt;NSNumber*&gt; *)inferenceImage:(UIImage*)image</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                                 angle:(<span class="keywordtype">float</span>)inAngle</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                              flipType:(MNNFlipType)outputFlipType</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;                                 error:(NSError *__autoreleasing *)error;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;- (NSArray&lt;NSNumber*&gt; *)inference:(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)data width:(<span class="keywordtype">float</span>)w height:(<span class="keywordtype">float</span>)h format:(MNNCVImageFormat)format</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                            angle:(<span class="keywordtype">float</span>)inAngle flipType:(MNNFlipType)outputFlipType</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                            error:(NSError *__autoreleasing *)error;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">@end</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="ainterface_m_n_n_portrait_segmentor_html"><div class="ttname"><a href="interface_m_n_n_portrait_segmentor.html">MNNPortraitSegmentor</a></div><div class="ttdoc">Portrait Segmentor Class.</div><div class="ttdef"><b>Definition:</b> MNNPortraitSegmentor.h:18</div></div>
<div class="ttc" id="a_m_n_n_portrait_segmentor_8h_html_a57567af2cbd9dd6cc412f27cba05e8fc"><div class="ttname"><a href="_m_n_n_portrait_segmentor_8h.html#a57567af2cbd9dd6cc412f27cba05e8fc">MNNKitErrorDomain</a></div><div class="ttdeci">static NSString * MNNKitErrorDomain</div><div class="ttdef"><b>Definition:</b> MNNPortraitSegmentor.h:14</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
